package homework32;


public class RemoteServer extends AbstractOperation {
    private RealServer realServer   = new RealServer();
    private int level= 0;
    @Override
    void Plus() {
        if(level == 1){
            realServer.Plus();
        }else if (level == 0){
            System.out.println("无法实现加法运算....");
        }
    }

    @Override
    void Reduce() {
        if(level == 1){
            realServer.Plus();
        }else if (level == 0){
            System.out.println("无法实现减法运算....");
        }
    }

    @Override
    void Ride() {

    }

    @Override
    void Except() {

    }
}
